gtk: add cast to fix warning in my last commit
authorMichael Natterer <mitch@gimp.org>
Thu, 14 Oct 2010 09:32:44 +0000 (11:32 +0200)
committerMichael Natterer <mitch@gimp.org>
Thu, 14 Oct 2010 09:35:30 +0000 (11:35 +0200)
gtk/gtkfilechooserdefault.c

index 24c42f3f0e5a96182b835db964d8839d2310cdc2..38c26d668deba3fdf997489af9cf127cd830006a 100644 (file)
@@ -6226,7 +6226,7 @@ show_and_select_files (GtkFileChooserDefault *impl,
 
           gtk_tree_selection_select_iter (selection, &iter);
 
-          path = gtk_tree_model_get_path (fsmodel, &iter);
+          path = gtk_tree_model_get_path (GTK_TREE_MODEL (fsmodel), &iter);
           gtk_tree_view_set_cursor (GTK_TREE_VIEW (impl->browse_files_tree_view),
                                     path, NULL, FALSE);
           gtk_tree_path_free (path);